package com.qf.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qf.pojo.DtsGrouponRules;

/**
 * @author dell
 * @version V1.0
 * @Date 2022/4/26 11:33:38
 */
public interface AdminGrouponService {

    /**
     *  查询团购列表
     * @param page
     * @param limit
     * @param goodsId
     * @param sort
     * @param order
     * @return
     */
    IPage<DtsGrouponRules> selectGrouponList(Integer page, Integer limit, Integer goodsId, String sort, String order);


    /**
     * 团购添加
     * @param dtsGrouponRules
     * @return
     */
    DtsGrouponRules insertGroupon(DtsGrouponRules dtsGrouponRules);

    /**
     * 团购修改
     * @param dtsGrouponRules
     */
    void updateGroupon(DtsGrouponRules dtsGrouponRules);

    /**
     *  团购删除  逻辑删除
     * @param id
     */
    void deleteGroupon(Integer id);
}
